/* 定义字体 */
@font-face {
    font-family: 'MiSans';
    src: local('MiSans Sans Regular'),
         url('../fonts/MiSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MiSans';
    src: local('MiSans Sans Medium'),
         url('../fonts/MiSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MiSans';
    src: local('MiSans Sans Bold'),
         url('../fonts/MiSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MiSans';
    src: local('MiSans Sans Semibold'),
         url('../fonts/MiSans-Semibold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* 应用字体 */
:root {
    --font-primary: 'MiSans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 基础字体设置 */
body {
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 添加字重类 */
.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}
